//
//  NSTimer+Category.h
//  game
//
//  Created by 马凌云 on 2018/3/8.
//  Copyright © 2018年 YD. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSTimer (Category)

/**
 *  定时器优化
 *
 *  @param interval     时长
 *  @param repeats      是否重复
 *  @param block        处理时间
 *
 */
+ (NSTimer *)ca_scheduledTimerWithTimeInterval:(NSTimeInterval)interval
                                       repeats:(BOOL)repeats
                                         block:(void(^)(void))block;

@end
